home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global galreadyshownbutton, greqcode, greqsprite, greq, gblend.47, gblend.46, gppoem, gcurrentnumber
- if soundBusy(2) then
- sound stop 2
- set gpleasespeak to EMPTY
- else
- nothing()
- end if
- set greqcode to 0
- set greqsprite to clickOn()
- if (greqsprite = 15) or (greqsprite = 16) then
- repeat while stillDown()
- if galreadyshownbutton then
- if getaProp(gppoem, gcurrentnumber + 1) = EMPTY then
- set gblend.47 to 0
- else
- set gblend.47 to 100
- end if
- if (getpoemname(gtpoem, gcurrentnumber, 5) = EMPTY) and (greqsprite = 16) then
- set gblend.46 to 0
- else
- set gblend.46 to 100
- end if
- showfloat(greqsprite)
- set galreadyshownbutton to 0
- end if
- end repeat
- if rollOver(45) then
- set greqcode to 45
- else
- if rollOver(46) then
- set greqcode to 46
- else
- if rollOver(47) then
- set greqcode to 47
- end if
- end if
- end if
- else
- nothing()
- end if
- end
-
- on mouseUp
- global greqcode, greqsprite, gextension, gpleasespeak, gtpoem, gcurrentnumber, greq
- if greqcode <> 0 then
- set the castNum of sprite greqcode to cast ("H-CLOSE" & string(gextension))
- updateStage()
- waitticks(15)
- set the castNum of sprite greqcode to cast ("OPEN" & string(gextension))
- updateStage()
- waitticks(15)
- if (greqcode = 45) and (greqsprite = 15) then
- sound playFile 2, getpoemname(gtpoem, gcurrentnumber, 1, "N")
- set greqcode to 0
- set greqsprite to 0
- end if
- if (greqcode = 45) and (greqsprite = 16) then
- sound playFile 2, getpoemname(gtpoem, gcurrentnumber, 2, "N")
- set greqcode to 0
- set greqsprite to 0
- end if
- if (greqcode = 46) and (greqsprite = 15) then
- hidefloat()
- set greq to "J"
- set greqcode to 0
- set greqsprite to 0
- go("EX")
- end if
- if (greqcode = 46) and (greqsprite = 16) and (getpoemname(gtpoem, gcurrentnumber, 5) <> EMPTY) then
- hidefloat()
- set greq to "E"
- set greqcode to 0
- set greqsprite to 0
- go("EX")
- end if
- if (greqcode = 47) and (greqsprite = 15) then
- hidefloat()
- if getaProp(gppoem, gcurrentnumber + 1) = EMPTY then
- nothing()
- else
- set greq to "J"
- killpuppet(2)
- set greqcode to 0
- set greqsprite to 0
- outcursor()
- go("PHOTO")
- end if
- end if
- if (greqcode = 47) and (greqsprite = 16) then
- hidefloat()
- if getaProp(gppoem, gcurrentnumber + 1) = EMPTY then
- nothing()
- else
- set greq to "E"
- killpuppet(2)
- set greqcode to 0
- set greqsprite to 0
- outcursor()
- go("PHOTO")
- end if
- end if
- else
- nothing()
- end if
- hidefloat()
- end
-
- on exitFrame
- go(the frame)
- end
-